package com.nbgroup.mapper;

import com.nbgroup.pojo.Dept;
import com.nbgroup.pojo.dto.DeptDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SystemDeptMapper {
    List<Dept> deptList(DeptDto dto);

    @Select("select * from dept where dept_id = #{deptId}")
    Dept deptInfo(Integer deptId);

    void update(Dept dept);

    void insert(Dept dept);

    void delete(Integer deptId);


}
